const Service = require('egg').Service;
class carService extends Service {
    
    async getlabel(value){
        const sql = `SELECT *FROM goods WHERE goods_label LIKE '%${value}%'`
        const data = await this.app.mysql.query(sql);
        return data;
    }
    
    async getscene(value){
        const sql =`SELECT *FROM goods WHERE goods_scene LIKE '%${value}%'`
        const data = await this.app.mysql.query(sql);
        return data;
    }

    async gettaste(value){
        const sql =`SELECT *FROM goods WHERE goods_taste LIKE '%${value}%'`
        const data = await this.app.mysql.query(sql);
        return data;
    }

}
module.exports = carService;